package com.define.commons.dao.controller;

import com.define.commons.common.utils.PageInfo;
import com.define.commons.common.utils.RS;
import com.define.commons.dao.domain.Process;
import com.define.commons.dao.service.ProcessService;
import com.gitee.fastmybatis.core.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiewenlong
 * @Date 2018/11/7 14:40
 */
@RestController
@RequestMapping("/process")
public class ProcessController {

    @Autowired
    private ProcessService service;

    @GetMapping("list")
    public RS<PageInfo<Process>> page(){
        return new RS<>(service.page(new Query()));
    }
}
